#pragma once
#include "toupcam.h"
typedef struct imageInfoTag
{
	int iWidth;
	int iHeight;
	int bSize;
	imageInfoTag()
	{
		iWidth = 0;
		iHeight = 0;
		bSize = 0;
	}
}IamgeInfoType;
//class QNetWorkToup;
class QToupHandler
{
public:
	QToupHandler();
	~QToupHandler();
	bool openDevice();
	void startDevice();
	void OnEventImage();
	static void __stdcall CamerImageCb(unsigned nEvent, void* pCallbackCtx);
private:
	HToupCam m_hToupcam;
	IamgeInfoType m_header;
	void*	m_pImageData;
	//QNetWorkToup* imageSender;
};
